@extends('layouts.app')
@section('content')

    <div class="continer">
        <div class="container">   @include('layouts._message')


            <div class="row">

                <div class="col-sm-3">
                    <div class="card">
                        <div class="card-header">
                            置顶文章
                        </div>
                        <div class="card-block">
                            @list(['istop'=>1,'limit' => 5])
                            <ul class="list-group list-group-flush">
                                <a class="list-group-item" href="{{$field['url']}}"> {{$field['title']}}</a>
                            </ul>
                            @endList
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    @slide(['height' => '270px'])
                </div>
                <div class="col-sm">
                    <div class="card">
                        <div class="card-header">
                            热门文章
                        </div>
                        <div class="card-block">
                            @list(['ishot'=>1,'limit' => 5])
                            <ul class="list-group list-group-flush">
                                <a class="list-group-item" href="{{$field['url']}}"> {{$field['title']}}</a>
                            </ul>
                            @endList
                        </div>
                    </div>
                </div>
            </div>
            <div class="row mt-3">
                @category
                <div class="col-sm-6 mb-3">
                    <div class="card">
                        <div class="card-header">
                            {{$cate['name']}}
                        </div>
                        <div class="card-block">
                            @list(['cid' => [$cate['id']] , 'limit' => 5])
                            <ul class="list-group list-group-flush">
                                <a class="list-group-item" href="{{$field['url']}}"> {{$field['title']}}</a>
                            </ul>
                            @endList
                        </div>
                    </div>
                </div>
                @endCategory
            </div>
        </div>
@endsection

